package com.java2401.yangnan.service;

import com.java2401.yangnan.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;

public interface UserService {
    public User selectByPrimaryKey(Integer id);
    User selectByCard(String card);
    List<User> allUserPage();
    public Integer insert(User user);
    int saveDateCheck(User user);
    public Integer update(User user);
    List<User> selectAllByDel(List<Integer> ids);
    int deleteAll(List<Integer> ids);
//    public User selectByName(User user);
    int deleteByPrimaryKey(Integer id);
    List<User> selectByDname(@Param("name") String name , @Param("age") Integer age, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

}
